﻿<UserControl x:Class="MainGameModule.Views.Partners"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d">

    <UserControl.Resources>
        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/YourWorld.Common;component/Styles/CommonResourcesDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot"
          Width="680"
          Height="398">

        <Path x:Name="BackgroundRectangle"
              Data="M187.2383,141.7393C187.2383,141.7393,176.3913,144.7943,172.5713,149.0723C164.2383,158.4063,166.5713,209.7393,165.2383,221.7393C163.9053,233.7393,163.9053,364.4073,165.2383,397.0733C166.5713,429.7393,165.2383,441.7393,167.9053,452.4053C170.5713,463.0733,178.5713,462.4053,187.2383,465.7393C195.9053,469.0733,317.9053,475.0733,335.2383,475.0733C352.5713,475.0733,497.2383,476.4073,523.9053,475.0733C550.5723,473.7393,617.2393,476.4053,630.5723,469.7393C643.9053,463.0733,651.2383,452.4053,651.2383,435.7393C651.2383,419.0733,652.5713,301.0723,651.2383,249.0723C649.9053,197.0723,651.8313,159.3863,645.9053,150.4063C641.9333,144.3863,629.2383,143.7393,617.9053,141.7393C606.5723,139.7393,419.9053,137.7393,381.2383,138.4063C342.5713,139.0723,187.2383,141.7393,187.2383,141.7393z"
              Stretch="Fill">
            <Path.Effect>
                <DropShadowEffect Opacity="0.5" />
            </Path.Effect>
            <Path.Fill>
                <RadialGradientBrush RadiusX="0.8">
                    <GradientStop Color="#FFD1E778" />
                    <GradientStop Color="#FF4A6305"
                                  Offset="1" />
                </RadialGradientBrush>
            </Path.Fill>
        </Path>

        <Border VerticalAlignment="Top"
                Height="431">
            <Grid Margin="0,0,0,65"
                  Height="380">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Button x:Name="CloseButton"
                        Grid.ColumnSpan="2"
                        Style="{StaticResource CloseButtonStyle}"
                        Command="{Binding ClosePartnersCommand}" />

                <TextBlock Text="Partners"
                           Grid.ColumnSpan="2"
                           Grid.Row="0"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Foreground="White"
                           FontSize="29"
                           FontFamily="Segoe UI"
                           Margin="0,1,0,0" />

                <HyperlinkButton Margin="30,5,5,5"
                                 NavigateUri="http://www.un.org/en/events/iyof2011/"
                                 Grid.Row="2"
                                 VerticalAlignment="Center"
                                 HorizontalAlignment="Center"
                                 TargetName="_blank" Width="110" Height="110" BorderThickness="0">
                    <HyperlinkButton.Template>
                        <ControlTemplate TargetType="HyperlinkButton">
                            <ContentPresenter Content="{TemplateBinding Content}" />
                        </ControlTemplate>
                    </HyperlinkButton.Template>
                    <Border Width="110" Height="110"
                            Background="White"
                            BorderBrush="#FFF10000"
                            CornerRadius="25">
                        <Border Margin="3,8,5,8">
                            <Border.Background>
                                <ImageBrush ImageSource="images/UN_Logo.jpg"
                                            Stretch="Uniform" />
                            </Border.Background>
                        </Border>
                    </Border>
                </HyperlinkButton>

                <StackPanel Margin="15"
                            Grid.Row="2"
                            Grid.Column="1">
                    <TextBlock FontWeight="Bold"
                               FontSize="14.667"
                               TextAlignment="Center"
                               LineHeight="8"><Run Text="International Year of Forests 2011" /></TextBlock>
                    <TextBlock LineHeight="8"
                               TextWrapping="Wrap"><Run Text="The United Nations General Assembly declared 2011 as the International Year of Forests to raise awareness on sustainable management, conservation and sustainable development of all types of forests." /></TextBlock>

                    <TextBlock LineHeight="8"
                               TextWrapping="Wrap"><Run Text="United Nations gave us their approval to use the Year of Forests logo in our game. Learn more and get inspired by the events they organise." /></TextBlock>
                    <HyperlinkButton NavigateUri="http://www.un.org/en/events/iyof2011/index.shtml"
                                     Content="Year of Forests 2011"
                                     Foreground="DarkBlue"
                                     TargetName="_blank" />
                </StackPanel>

                <HyperlinkButton Margin="30,5,5,5"
                                 NavigateUri="http://www.un.org/en/events/iyof2011/"
                                 Grid.Row="3"
                                 VerticalAlignment="Center"
                                 HorizontalAlignment="Center"
                                 TargetName="_blank">
                    <HyperlinkButton.Template>
                        <ControlTemplate TargetType="HyperlinkButton">
                            <ContentPresenter Content="{TemplateBinding Content}" />
                        </ControlTemplate>
                    </HyperlinkButton.Template>
                </HyperlinkButton>
                <HyperlinkButton Margin="30,5,5,5"
                                 NavigateUri="http://www.unleashed.org.au/"
                                 Grid.Row="4"
                                 VerticalAlignment="Center"
                                 HorizontalAlignment="Center"
                                 TargetName="_blank">
                    <HyperlinkButton.Template>
                        <ControlTemplate TargetType="HyperlinkButton">
                            <ContentPresenter Content="{TemplateBinding Content}" />
                        </ControlTemplate>
                    </HyperlinkButton.Template>
                    <Border Width="110"
                            Height="96"
                            Background="White"
                            BorderBrush="#FFF10000"
                            CornerRadius="25">
                        <Border Margin="4,0,4,8">
                            <Border.Background>
                                <ImageBrush ImageSource="images/aus.png"
                                            Stretch="Uniform" />
                            </Border.Background>
                        </Border>
                    </Border>
                </HyperlinkButton>
				
				 <TextBlock TextWrapping="Wrap" Margin="15" Grid.Row="4" Grid.Column="1"><Run FontWeight="Bold">Unleashed</Run><Run Text=" is Australia's national youth animal rights group. They combine forces with bands, artists and people like you to get the word out about how everyone can help animals and the environment. They have provided us with the Causes Quests Stickers!"/></TextBlock>
					
				
                <TextBlock Grid.Row="5"
                           Margin="15"
                           Grid.ColumnSpan="2"
                           VerticalAlignment="Top">Do you like our ideas? Want to share your thoughts? Find more about the technologies we've used?</TextBlock>
                <HyperlinkButton    Grid.Row="5"
                                    Margin="15"
                                    Grid.ColumnSpan="2"
                                    x:Name="BecomeFanInFacebookButton"
                                    BorderBrush="Transparent"
                                    BorderThickness="0"
                                    TargetName="_blank"
                                    NavigateUri="http://www.facebook.com/ImagineGreenWorld"
                                    Width="81"
                                    Height="37"
                                    VerticalAlignment="Bottom"
                                    HorizontalAlignment="Right">
                    <HyperlinkButton.Template>
                        <ControlTemplate TargetType="HyperlinkButton">
                            <ContentPresenter Content="{TemplateBinding Content}" />
                        </ControlTemplate>
                    </HyperlinkButton.Template>
                    <Border VerticalAlignment="Bottom"
                            BorderThickness="2"
                            BorderBrush="#FFA9BDE2"
                            CornerRadius="6"
                            Height="37">
                        <Border.Background>
                            <LinearGradientBrush StartPoint="1,0"
                                                 EndPoint="1,1">
                                <GradientStop Color="#FF7094D8"
                                              Offset="0.0" />
                                <GradientStop Color="#FF3F63B6"
                                              Offset="1.0" />
                                <GradientStop Color="#FF4C6EB1"
                                              Offset="0.284" />
                                <GradientStop Color="#FF3C5DAA"
                                              Offset="0.332" />
                            </LinearGradientBrush>
                        </Border.Background>
                        <TextBlock Text="Share Your Feedback"
                                   FontSize="12"
                                   VerticalAlignment="Center"
                                   Margin="5 0 5 0"
                                   Foreground="White"
                                   FontFamily="Segoe UI"
                                   TextWrapping="Wrap"
                                   HorizontalAlignment="Center"
                                   TextAlignment="Center" />
                    </Border>
                </HyperlinkButton>
                <HyperlinkButton Grid.Row="5"
                                 NavigateUri="http://www.imaginecup.com/worldwide-finals/peoples-choice-award/view-and-vote.aspx?r=6247"
                                 Content="Support us here."
                                 Foreground="DarkBlue"
                                 TargetName="_blank"
                                 Margin="327,35,91,14"
                                 Height="18"
                                 Width="115"
                                 Grid.Column="1" />
            </Grid>
        </Border>

    </Grid>
</UserControl>
